package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("willingness_survey")
public class WillingnessSurvey implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增id")
    @TableField(exist = false)
    private Long id;

    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty("学生名称")
    private String studentName;

    @ApiModelProperty("1上课；2喜不喜欢；3还想继续；4有进步吗")
    private Integer type;

    @ApiModelProperty("0未选择；1是；2否")
    private Integer state;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("时间戳，用来区分student_id添加的次数")
    private Long addTime;

    private Long schoolId;

    private Long gradeId;

    private Long teacherId;

    private String teacherName;

    private Integer subjectsId;

    private Long classTypeId;

    private Integer yearClassId;

    @ExcelIgnore
    @ApiModelProperty("调查结果名称，空格拼接")
    @TableField(exist = false)
    private String surveyResultName;

}
